package com.example.controller.util;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@lombok.Data
@AllArgsConstructor//有参构造
@NoArgsConstructor//无参构造
public class Data {
    private Integer code;
    private Object data;
    private String msg;
    private String token;

    public Data(Integer code, String msg, String token) {
        this.code = code;
        this.msg = msg;
        this.token = token;
    }

    public Data(Integer code, Object data, String msg) {
        this.code = code;
        this.data = data;
        this.msg = msg;
    }

    public Data(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
